<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2-新浪导航</title>
    <style>
        *{
            margin:0;
            padding:0;
            font-family: 'Micorsoft yahei';
        }
        nav{
            border-top: 3px solid #ff8500;
            border-bottom: 1px solid #edeef0;
        }
        nav a{
            display: inline-block;
            width: 78px;
            height:39px;
            line-height:39px;
            text-align: center;
            font-size: 12px;
            color: #4c4c4c;
            text-decoration: none;
        }
        nav a.cur{
            background: #edeef0;
            color: #ff8400;
        }
        nav a:hover{
            background: #edeef0;
            color: #ff8400;
        }
    </style>
</head>
<body>
    <nav>
        <a href="" class="cur">生活</a>
        <a href="">文化</a>
        <a href="">军事</a>
        <a href="">汽车</a>
    </nav>
</body>
</html>